// created by noellynch
// Apr 14, 2011

package com.apachepivot.utils;

public class ApachePivotCollections {
	static	public<E>	org.apache.pivot.collections.ArrayList<E>		fromJavaNativeListToList(java.util.List<E> cla_array) {
		org.apache.pivot.collections.ArrayList<E>		lcl_new = new org.apache.pivot.collections.ArrayList<E>();
		
		for(E lcl_obj : cla_array) {
			lcl_new.add(lcl_obj);
		}
		
		return lcl_new;
	}
	
	static	public<E>	org.apache.pivot.collections.ArrayList<E>		fromJavaNativeSetToList(java.util.Set<E> cl_set) {
		org.apache.pivot.collections.ArrayList<E>	lcla_keys = new org.apache.pivot.collections.ArrayList<E>();
		
		if(lcla_keys == null) {
			System.out.println("set is null....");
			return new org.apache.pivot.collections.ArrayList<E>();
		}
		
		for(E lcl_obj : cl_set) {
			lcla_keys.add(lcl_obj);
		}
		
		return lcla_keys;
	}
}
